﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace CMS.APP
{
    public class VoteBasic
    {
        #region Fields
        /// <summary>
        /// 投票Id
        /// </summary>
        private decimal id;
        /// <summary>
        /// 投票Id
        /// </summary>
        public decimal Id
        {
            get { return id; }
            //set { id = value; }
        }
        /// <summary>
        /// 投票标题
        /// </summary>
        private string title;
        /// <summary>
        /// 投票标题
        /// </summary>
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        /// <summary>
        /// 投票描述
        /// </summary>
        private string description;
        /// <summary>
        /// 投票描述
        /// </summary>
        public string Description
        {
            get { return description; }
            set { description = value; }
        }
        /// <summary>
        /// 选项个数
        /// </summary>
        private int maxOption;
        /// <summary>
        /// 选项个数
        /// </summary>
        public int MaxOption
        {
            get { return maxOption; }
            //set { maxOption = value; }
        }
        /// <summary>
        /// 最多选择个数
        /// </summary>
        private int maxSelect;
        /// <summary>
        /// 最多选择个数
        /// </summary>
        public int MaxSelect
        {
            get { return maxSelect; }
            set { maxSelect = value; }
        }
        /// <summary>
        /// 投票截止时间
        /// </summary>
        private DateTime deadline;
        /// <summary>
        /// 投票截止时间
        /// </summary>
        public DateTime Deadline
        {
            get { return deadline; }
            set { deadline = value; }
        }
        /// <summary>
        /// 选项1
        /// </summary>
        private string option1;
        /// <summary>
        /// 选项1
        /// </summary>
        public string Option1
        {
            get { return option1; }
            set { option1 = value; }
        }
        /// <summary>
        /// 选项2
        /// </summary>
        private string option2;
        /// <summary>
        /// 选项2
        /// </summary>
        public string Option2
        {
            get { return option2; }
            set { option2 = value; }
        }
        /// <summary>
        /// 选项3
        /// </summary>
        private string option3;
        /// <summary>
        /// 选项3
        /// </summary>
        public string Option3
        {
            get { return option3; }
            set { option3 = value; }
        }
        /// <summary>
        /// 选项4
        /// </summary>
        private string option4;
        /// <summary>
        /// 选项4
        /// </summary>
        public string Option4
        {
            get { return option4; }
            set { option4 = value; }
        }
        /// <summary>
        /// 选项5
        /// </summary>
        private string option5;
        /// <summary>
        /// 选项5
        /// </summary>
        public string Option5
        {
            get { return option5; }
            set { option5 = value; }
        }
        /// <summary>
        /// 创建者
        /// </summary>
        private string creator;
        /// <summary>
        /// 创建者
        /// </summary>
        public string Creator
        {
            get { return creator; }
            //set { creator = value; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        private DateTime creatTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatTime
        {
            get { return creatTime; }
            //set { creatTime = value; }
        }
        /// <summary>
        /// 更新着
        /// </summary>
        private string lastUpdater;
        /// <summary>
        /// 更新者
        /// </summary>
        public string LastUpdater
        {
            get { return lastUpdater; }
            //set { lastUpdater = value; }
        }
        /// <summary>
        /// 更新时间
        /// </summary>
        private DateTime lastUpdateTime;
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime LastUpdateTime
        {
            get { return lastUpdateTime; }
            //set { lastUpdateTime = value; }
        }
        /// <summary>
        /// 投票标签
        /// </summary>
        private ArrayList tag;
        /// <summary>
        /// 投票标签
        /// </summary>
        public ArrayList Tag
        {
            get { return tag; }
            set { tag = value; }
        }
        #endregion Fields
        
        /// <summary>
        /// 更新
        /// </summary>
        public int Update()
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 引用新闻
        /// </summary>
        public List<News> ReferenceNews
        {
            get
            {
                throw new System.NotImplementedException();
            }
        }
        /// <summary>
        /// 创建投票
        /// </summary>
        /// <param name="voteTitle">投票标题</param>
        /// <param name="voteDescription">投票描述</param>
        /// <param name="optionPercent">投票选项</param>
        /// <param name="maxSelect">最多选项个数</param>
        /// <param name="deadline">投票截止日期</param>
        /// <param name="tag">投票Tags</param>
        public static int MakeVote(string voteTitle, string voteDescription, ArrayList option, int maxSelect, DateTime deadline, ArrayList tag)
        {
            throw new System.NotImplementedException();
        }
        
        /// <summary>
        /// 阅读投票
        /// </summary>
        /// <param name="voteId">投票Id</param>
        public static VoteBasic ReadVote(decimal voteId)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 阅读投票
        /// </summary>
        /// <param name="howMany">阅读数量</param>
        public static List<VoteBasic> ReadVotes(int? howMany)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 阅读投票
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <param name="howMany">阅读数量</param>
        public static List<VoteBasic> ReadVotesbyUser(string userId, int? howMany)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 阅读投票
        /// </summary>
        /// <param name="timeFrom">开始时间</param>
        /// <param name="timeTo">结束时间</param>
        public static List<VoteBasic> ReadVotesbyTime(DateTime? timeFrom, DateTime? timeTo)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 搜索投票
        /// </summary>
        /// <param name="voteTitle">投票标题</param>
        /// <param name="voteOption">投票选项</param>
        /// <param name="voteTags">投票Tags</param>
        /// <param name="userId">用户Id</param>
        /// <param name="timeFrom">时间开始</param>
        /// <param name="timeTo">时间结束</param>
        /// <param name="howMany">投票数量</param>
        public static List<VoteBasic> SearchVotes(string voteTitle, string voteOption, ArrayList voteTags, string userId, DateTime? timeFrom, DateTime? timeTo, int? howMany)
        {
            throw new System.NotImplementedException();
        }
    }
}
